import { pubRequire } from '@utils/public'
const baseUrl = '/tags/users'
//获取列表
export function getLabelList(obj, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}`, obj, callbBack, errBack)
}
//创建标签用户-提交表单-批量导入
export function multipleImport(formData, callBack, errBack) {
  return pubRequire('post', `${baseUrl}/import`, formData, callBack, errBack)
}
//用户标签管理-创建标签用户-手动导入
export function importUserLabel(obj, callBack, errBack, query = '') {
  return pubRequire(
    'post',
    `${baseUrl}/binding${query}`,
    obj,
    callBack,
    errBack
  )
}
//用户标签管理-添加标签-导入标签
export function multipleImportUserTag(formData, callBack, errBack) {
  return pubRequire(
    'post',
    `${baseUrl}/import-tags`,
    formData,
    callBack,
    errBack
  )
}
//用户标签管理-查看标签-列表
export function checkTagList(userId, obj, callBack, errBack) {
  return pubRequire('get', `${baseUrl}/${userId}`, obj, callBack, errBack)
}
